﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using RecruitingApplication.Data_Model;

namespace RecruitingApplication.Controls.DocsNotes
{
    public partial class DocsControl : System.Web.UI.UserControl
    {
        public int AppID { get; set; }

        protected void Page_Load(object sender, EventArgs e)
        {
            DataAccessLayer.OpenDB();

            this.DocsRepeater.DataSource = DataAccessLayer.GetDocumentsForApplication(AppID);
            this.DocsRepeater.DataBind();

            DataAccessLayer.CloseDB();
        }
    }
}